home *** CD-ROM | disk | FTP | other *** search
/ Amiga Plus 1995 #2 / Amiga Plus CD - 1995 - No. 2.iso / internet / faq / englisch / comp.windows.x.pex < prev    next >
Encoding:
Text File  |  1995-04-11  |  35.5 KB  |  892 lines

  1. Archive-name: pex-faq
  2. Last-Modified: 28 March 1994
  3.  
  4. This article discusses frequently asked questions (FAQs) about PEX,
  5. the PHIGS Extensions to the X Window System.  Each question is grouped
  6. as an article in a digest.  Some news readers (i.e rn) have commands
  7. for skipping to the next article in a digest.  In rn, ^G (control-G)
  8. skips to the next article in a digest.  The information in this
  9. article is culled from several sources: the FAQ in comp.windows.x,
  10. and articles in the newsgroups comp.windows.x and comp.graphics.
  11. Where possible, the author, date and article id of the original
  12. newsgroup article is included.  When I have edited/modified the
  13. original article, I have enclosed my modifications in square brackets
  14. [] with my initials (RT) at the end.
  15.  
  16. Contents:
  17.   1)  What's new?
  18.   2)  What is PEX?
  19.   3)  How can I tell if my X server supports PEX?
  20.   4)  Why don't the R5 PEX demos work on my mono screen?
  21.   5)  Where can I get an X-based PEX package?
  22.   6)  What about immediate mode for PEX?
  23.   7)  Why don't the R5 PEX contributed demos compile?
  24.   8)  Why doesn't double-buffering work via phigs_ws_type_create?
  25.   9)  What does "Kernel not configured with shared-memory IPC" mean?
  26.  10)  Obtaining Graphics Standards (GKS, PHIGS, etc.)
  27.  11)  PHIGS/PEX Books
  28.  12)  Articles on PEX
  29.  13)  PEX Application Programmer Interfaces (APIs)
  30.  14)  PHIGS Toolkit -- a portable toolkit for PHIGS programmers
  31.  15)  Why doesn't HLHSR mode (Z buffering) work with the PEX-SI?
  32.  
  33. Acronyms:
  34.  
  35. ANSI        American National Standards Institute
  36. API        Application Programmer Interface
  37. CGM        Computer Graphics Metafile
  38. GKS        Graphics Kernel System
  39. HLHSR        Hidden line and hidden surface removal
  40. ISO        International Organization for Standardization
  41. PEX        PHIGS/PHIGS-PLUS Extensions to X
  42. PHIGS        Progammer's Hierarchical Interactive Graphics System
  43. PHIGS-PLUS    PHIGS Plus Lumiere Und Surfaces
  44. R5        X Window System, Version 11 Release 5
  45. SI        Sample Implementation
  46.  
  47. ------
  48. Subject:  1)  What's new?
  49. From: Rich Thomson <thomson@jensen.cs.utah.edu>
  50. Date: Mon Mar 28 14:14:49 MST 1994
  51.  
  52. Modifications since the 13 September 1993 version:
  53. o   Added section on HLHSR with the PEX-SI
  54.  
  55. Modifications since the 3 March 1993 version:
  56. o   Revamped section on PHIGS books
  57.  
  58. Added since the 7 December version:
  59. o   Clarification that although PEX stands for "PHIGS Extensions to
  60.     X", this acronym's expansion has only historical significance in light
  61.     of PEX 6.0
  62. o   Changing of API section to have updated information on PEXtk and PEXlib
  63. o   Changing of book section to have information on O'Reilly
  64.     PHIGS/PEXlib books
  65. o   Added new section on the PHIGS Toolkit from the UK
  66. o   This section describing changes from the last version
  67.  
  68. ------
  69. Subject:  2)  What is PEX?
  70. From: hersh@expo.lcs.mit.edu (Jay Hersh)
  71. Date: Mon Dec  7 14:10:47 MST 1992
  72. Message-Id: <9201201706.AA13024@xenon.lcs.mit.edu>
  73.  
  74. [PEX originally stood for PHIGS Extensions to X.  However, this name
  75. is nothing more than history at this point, since the next version of
  76. the PEX protocol, version 6.0, is not really designed specifically for
  77. PHIGS at all.  Rather, it is designed to support 3D application
  78. programs in general. --RT]  It is a an Extension to the Core X
  79. Protocol to provide 3D graphics support within the X Windows
  80. environment.  Included in the X11R5 distribution is code for the
  81. Sample Implementation of the extensions to the X Windows server which
  82. implements the functionality defined by the PEX Protocol Extensions.
  83.  
  84. In order to access the PEX funtional extensions to the X Server
  85. one must use an application that generates PEX Protocol.  The
  86. application can either generate the Protocol bytestream itself, or
  87. use something called an Application Protocol Interface or API for
  88. short.  One such API which is provided with the X11R5 distribution
  89. is the PHIGS 3D graphics standard.  This is a port of the PHIGS C
  90. language binding onto an internal layer which generates the PEX
  91. Protocol allowing this particular PHIGS implementation to work
  92. within the X windows environment.
  93.  
  94. Other alternate APIs are available via anonymous ftp from
  95. export.lcs.mit.edu.
  96.  
  97. Patches for a variety of problems in R5 are now available via
  98. anonymous ftp on export.lcs.mit.edu, and the xstuff mail archive
  99. server on expo.lcs.mit.edu.
  100.  
  101. Fixes are available via anonymous ftp to export.lcs.mit.edu
  102. (18.24.0.12), in the directory /pub/R5/fixes/.  The files for the new
  103. fixes are "fix-18", "fix-19", and "PEXlib.tar.Z".  PEXlib.tar.Z is
  104. part of fix #19.  Instructions for applying the fixes are included in
  105. the files.  Fixes usually propagate to other distribution sites as
  106. well, so it may pay to check at a nearer site first.
  107.  
  108. - Jay Hersh
  109.   MIT X Consortium
  110.  
  111. ------
  112. Subject:  3)  How can I tell if my X server supports PEX?
  113. From: hersh@expo.lcs.mit.edu (Jay Hersh)
  114. Date: Mon, 20 Jan 92 12:06:01 -0500
  115. Message-Id: <9201201706.AA13024@xenon.lcs.mit.edu>
  116.  
  117. The xdpyinfo command displays all the extensions supported by a server.
  118. If one of the extensions listed is X3D-PEX then your server supports PEX.
  119.  
  120. - Jay Hersh
  121.   MIT X Consortium
  122.  
  123. ------
  124. Subject:  4)  Why don't the R5 PEX demos work on my mono screen?
  125. From: xug@mta.com (X User's Group)
  126. Date: Sun, 15 Dec 91 20:51:04 GMT
  127. Message-Id: <1991Dec15.205122.5581@mta.com>
  128. Newsgroups: comp.windows.x
  129.  
  130. The R5 sample server implementation only works on color screens, sorry.
  131.  
  132. ------
  133. Subject:  5)  Where can I get an X-based PEX package?
  134. From: xug@mta.com (X User's Group)
  135. Date: Sun, 15 Dec 91 20:53:23 GMT
  136. Message-Id: <1991Dec15.205323.5657@mta.com>
  137. Newsgroups: comp.windows.x
  138.  
  139.     The official release of PEX is with X11R5.
  140.  
  141.     There is now available from the University of Illinois an 
  142. implementation of the PEX 4.0 specification called UIPEX. It contains a "near-
  143. complete" implementation of PHIGS and PHIGS PLUS. The file 
  144. pub/uipex/uipex.tar.Z is on a.cs.uiuc.edu (128.174.252.1); the porting platform
  145. was an RT running 4.3.  Questions and comments can to go uipex@cs.uiuc.edu. 
  146.  
  147.     In addition, the PEXt toolkit by Rich Thomson
  148. (thomson@jensen.cs.utah.edu) is available on export as PEXt.tar.Z; it
  149. includes a PEX widget making it easier to include PEX in Xt-based programs.
  150.  
  151.  
  152. ------
  153. Subject:  6) What about immediate mode for PEX?
  154. From: jch@Stardent.COM (Jan "Yon" Hardenbergh)
  155. Date: 7 May 91 15:39:02 GMT
  156. Message-Id: <1991May7.153902.6083@Stardent.COM>
  157. References: <JIM.91May6113744@baroque.Stanford.EDU>
  158. Newsgroups: comp.graphics
  159.  
  160. PEX has immediate mode intrinsically.  No need to add it.  What is
  161. needed is the API.  There are currently three proposed interfaces to PEX
  162. Immediate mode: PEXIM, PEXlib and PEXtk.  PEXIM is actually a PHIGS
  163. subset with immediate mode extensions.  PEXlib is to the PEX protocol
  164. what Xlib it to the X protocol.  PEXtk is trying to capture the best of
  165. the proprietary graphics interfaces.
  166.  
  167. Of course, PEXIM has the advantage that graphics hackers familiar with
  168. PHIGS can pick it right up, or that can read one of the (great :-) PHIGS
  169. books coming out.
  170.  
  171. The ANSI PHIGS committee started to add immediate mode to PHIGS.  So,
  172. eventually, the API for PEX immediate mode will probably fall back to
  173. PHIGS, but that is just opinion.
  174.  
  175. From: jim@baroque.Stanford.EDU (James Helman)
  176. > But does this actually address the problem?  The main reason that
  177. > PHIGS is well-suited for networked graphics is that once your large
  178. > mass of geometry is downloaded, you can rapidly change attributes and
  179. > transformations without blasting the whole object down the slow wire.
  180. > But in immediate mode, one typically sends everything down the wire
  181. > each draw cycle.  With graphics speeds hitting 1 million polys per
  182. > second, you certainly can't blast enough data down an ethernet to feed
  183. > the graphics hardware.
  184.  
  185. You have to look at what is happening to the majority of the data.  If
  186. the geometry is stable but the attribute change, then you can store the
  187. geometry in the server and use immediate mode to send the attributes.
  188. This is referred to as "mixed mode" or mixing stored structures with
  189. immediate mode.  This is a very powerful model of graphics.
  190.  
  191. > Hence unless network bandwidth outpaces graphics performance, an
  192. > immediate mode PEX API won't be particularly useful over a network.
  193. > One could replace the PEX layer with local graphics access to get
  194. > performance, thus making the immediate mode PEX API a standard for
  195. > non-PEX graphics, but this is a rather convoluted path to such an end.
  196.  
  197. It's never safe to assume that the relative speeds of components of the
  198. system will stay the same.  You are comparing the high end of rendering
  199. with the low end of networking.  Compare the current high end of
  200. networking, like FDDI at 12 MBytes per second and it works out just
  201. fine.  1 M polygons/sec takes 12 MB / second.  Of course both of those
  202. numbers are PEAK numbers.  When you start to look at what applications
  203. really do, the peak numbers become irrelevant.
  204.  
  205. > Maybe GL and XGL's days aren't so numbered.  Or am I missing
  206. > something?  Perhaps, local shared memory PEX request queues?  The
  207. > article didn't even mention bandwidth as a concern.
  208.  
  209. Yes, of course good implementations of PEX will have shared memory.
  210.  
  211. But let's talk about the bread and butter cases.  The majority of the
  212. market has not hit the 30 K triangles per second mark.  Ethernet can
  213. keep up with that quite easily, and shared memory does more than keep
  214. up.
  215.  
  216. But, there is overhead in a network transparent protocol.  To get rid of
  217. it would require the application to write thier data directly into the
  218. shared memory, then there are no copies, still something to work for.
  219. People used to say X would never work due to the overhead, or for that
  220. matter that fancy UI's do not work due to the overhead.  Depends on what
  221. you want and where your priorities are.
  222.  
  223. My guess is that the combination of compute servers and PEX terminals
  224. and workstations will help PEX become the graphics of choice.  If you
  225. are not recomputing your 1 million triangles they can be in the display
  226. list.  If you are recomputing them, how long does that take? on what
  227. machine?
  228.  
  229. Disclaimer: I've had something to do with PEX and PEXIM and I always
  230. speak on my own behalf, unless specifically stated otherwise.
  231.  
  232. -Jan "YON" Hardenbergh       jch@stardent.com         (508)-371-9810x261
  233. Stardent Computer, 6 N.E. Tech Center, 521 Virginia Rd,Concord, MA 01742
  234.  
  235. ------
  236. Subject:  7)  Why don't the R5 PEX contributed demos compile?
  237. From: hersh@expo.lcs.mit.edu
  238. Date: Thu, 30 Apr 92 15:39:27 -0400
  239. Message-Id: <9204301939.AA06066@exhume.lcs.mit.edu>
  240.  
  241. >   [Initially at the time of R5's release...] it was a bit of
  242. >   work to upgrade PEX to the new ISO IS PHIGS C Binding.  The examples
  243. >   had been put into contrib a while back and there was no time nor
  244. >   manpower to worry about updating those when other things had to be
  245. >   fixed and upgraded (like the man pages).
  246.  
  247. The demos have been upgraded.  The new versions for the ISO PHIGS C
  248. binding are available from export.lcs.mit.edu  in the file
  249. PEX.examples.tar.Z in the directory contrib/R5fixes.
  250.  
  251. - Jay Hersh
  252.  
  253. -----
  254. Subject:  8)  Why doesn't double-buffering work via phigs_ws_type_create?
  255. From: thomson@jensen.cs.utah.edu (Rich Thomson)
  256. Date: Sat, 23 Nov 91 20:38:52 GMT
  257. Message-ID: <1991Nov23.203852.3673@dsd.es.com>
  258. References: <1991Nov22.220338.3560@shell.shell.com>
  259. Newsgroups: comp.graphics,comp.windows.x
  260.  
  261. In article <1991Nov22.220338.3560@shell.shell.com>
  262.     senften@taurus (Scott D. Senften) writes:
  263. >
  264. >I need your help...I just got X11R5 up and running on my Sparc and I'm wanting
  265. >to do some PHIGS+ work.  I've got a rough prototype up and running but I can't
  266. >seem to get the double buffering working.  I tried:
  267. >
  268. > wks = phigs_ws_type_create(phigs_ws_type_x_tool,
  269. >                            PHIGS_X_BUF_MODE, PHIGS_BUF_DOUBLE,
  270. >                            0);
  271. >
  272. >but that alone doesn't seem to do it.  Am I missing something?
  273.  
  274. What you're missing is that the PEX-SI provides no support for double
  275. buffering.
  276.  
  277. A serious hole in the PEX-SI is its non-support for double buffering.
  278. Even worse, the PEX-SI api assumes that the client desires an
  279. XClearArea on the window before each frame is drawn.  What really
  280. should have been done was to provide an end-of-render procedure hook,
  281. with the default hook installed to do a clear area.
  282.  
  283. Individual vendors (because of market pressure) have provided their
  284. own solutions to the double buffering problem (we do double buffering
  285. an all PHIGS workstations; if you do immediate-mode you get single
  286. buffering along with the PEX-SI's XClearArea call).
  287.  
  288. I believe the PEX interoperability group is currently working on a vendor
  289. neutral solution that we can all agree on.
  290.  
  291.                         -- Rich
  292.  
  293. -----
  294. Subject:  9)  What does "Kernel not configured with shared-memory IPC" mean?
  295. From: michaelh@homebrew.WV.TEK.COM (Mike Herbert)
  296. Date: 25 Nov 91 18:54:35 GMT
  297. Message-ID: <12065@orca.wv.tek.com>
  298. Newsgroups: comp.windows.x
  299.  
  300. Francis J. Hitchens writes:
  301. > I have just built X11R5 on my VAXstatsion 3100, under ULTRIX 4.1, and
  302. > tried to run the PEX
  303. > tests.
  304. >
  305. > They all failed...
  306. >
  307. > PHIGS error -57 in OPEN PHIGS: Kernel not configured with shared-memory IPC
  308. > facility needed for PEX SI communication
  309.  
  310. I ran into this problem last week.  Here's what I've determined so far.
  311.  
  312. Your PEX library has been built so that it is trying to use the shared-memory
  313. IPC facility to communicate with the phigsmon program.  If your client
  314. does not need phigsmon, then turn it off:
  315.  
  316. setenv PEX_SI_API_NO_PM 1
  317.  
  318. (Typically you should only need phigsmon for doing PHIGS input or client-
  319. side structure storage.)
  320.  
  321. Another alternative is to rebuild the PEX library so that it uses sockets
  322. to communicate with phigsmon.  You can do this by defining 
  323. "PEX_API_SOCKET_IPC".  (I haven't tried this, but the code indicates
  324. that it should work.) 
  325.  
  326. The other alternative, of course, it to configure your kernel to use IPC.
  327. (I'm a novice as far as Ultrix is concerned, so I really don't understand
  328. what's involved in doing that.)
  329.  
  330. Mike Herbert
  331. Tektronix, Inc.
  332. Network Displays Division
  333. P.O. Box 1000, M/S 60-850
  334. Wilsonville, OR 97070
  335. (503) 685-2145
  336.  
  337. michaelh@orca.WV.TEK.COM
  338.  
  339. -----
  340. Subject:  10)  Obtaining Graphics Standards (GKS, PHIGS, etc.)
  341. From: jch@Stardent.COM (Jan "Yon" Hardenbergh)
  342. Date: 12 Feb 91 19:27:53 GMT
  343. Message-ID: <1991Feb12.192753.3647@Stardent.COM>
  344. Newsgroups: comp.graphics
  345.  
  346. GKS - Graphical Kernal System - geometric graphics system
  347. CGM - Computer Graphics Metafile - archive of graphics commands - very
  348.       useful for plotting.
  349. PHIGS - the best graphics standard!  3D geometric graphics with lighting
  350.       and shading and neat primitives to draw fancy pictures.
  351. If you are looking for a broad overview of graphics standards you might
  352. try this:
  353.  
  354. >   Guidelines for determining when to use GKS and when to use PHIGS
  355. >   Bettels, J.; Bono, P.R.; McGinnis, E.; Rix, J.
  356. >   Author Affil:  Digital Equipment Corp., Geneva, Switzerland
  357. >   Source: Comput. Graph. Forum (Netherlands)  vol.7, no.4,    pp.: 347-54
  358. >   Publication Year: Dec. 1988
  359. >   (29 Refs)
  360. >   Abstract:  GKS,  GKS-3D, and PHIGS are all approved ISO standards for the
  361. > application  programmer  interface.  How  do system analysts or programmers
  362. > decide which standard to use for their application? The authors discuss the
  363. > range  of  application  requirements  likely to be encountered, explore the
  364. > suitability  of  GKS and PHIGS for satisfying these requirements, and offer
  365. > guidelines to aid in the decision process. 
  366.  
  367. I know I've seen other overviews of graphics standards. Just none recently.
  368.  
  369. There are a couple of books on CGM and GKS, but I do not have the
  370. references written down.
  371.  
  372. As, for PHIGS, you can get the standard itself from ANSI in New York.
  373. 212-642-4900, 11 West 42nd Street, NY, NY 10036.  [The following table
  374. gives the ANSI standard numbers corresponding to the PHIGS standards:
  375.  
  376.     ANSI X3.144-1988    ISO 9592 parts 1, 2 and 3 for PHIGS
  377.     ANSI X3.144.1        ISO 9593-1 for PHIGS FORTAN binding
  378.     ANSI X3.144.3        ISO 9593-3 for PHIGS Ada binding
  379.     ANSI X3.144.4        ISO 9593-4 for PHIGS C binding
  380.  
  381. --RT]  They will also have the GKS and CGM specs.
  382.  
  383. -Jan "YON" Hardenbergh       jch@stardent.com         (508)-371-9810x261
  384. Stardent Computer, 6 N.E. Tech Center, 521 Virginia Rd,Concord, MA 01742
  385.  
  386. -----
  387. Subject: 11) PHIGS/PEX books
  388. From: jch@adbeta9.prime.com (Jan Hardenbergh )
  389. Date: Fri, 3 Sep 1993 00:31:21 GMT
  390. Summary:  lots of PHIGS and PEX books out there.
  391. Id:  <CCr5G9.28q@cvbnet.CV.COM>
  392.  
  393. I'm perhaps not the best judge, since I have them all (or will soon) and
  394. have a trial membership to the authors club, where we all chum around
  395. together :-)
  396.  
  397. But if your job is actually to work with either PHIGS or PEX, SPEND the
  398. $200+ or so to get many of the books here. It's a tiny investment in
  399. your career, especially if you get reimbursed! If you are the type that
  400. only wants one book on a subject, go to a bookstore and look carefully
  401. at which one you want, after all, you can't judge a book by its email.
  402.  
  403. The books I'd buy again appear in order of appearance.
  404.  
  405. PHIGS Books
  406. ===========
  407.  
  408. Toby Howard et al. "A Practical Introduction to PHIGS and PHIGS PLUS"
  409. Addison-Wesley 1991, ISBN 0-201-41641-7
  410.   A "great" small book on PHIGS.  Covers almost everything, but briefly.
  411.   Not good to program from, but if your question is what is PHIGS, this
  412.   will be the best place to start for most people.
  413.  
  414. Tom Gaskins. "PHIGS Programming Manual", O'Reilly 1992, 
  415.     ISBN 0-937175-92-7 (casebound)  ISBN 0-937175-85-4 (soft)
  416.   This is the most comprehensive and the best to program from for Sun
  417.   and any PEX-SI based PHIGS product. Tom knows this stuff inside and out.
  418.  
  419. Joseph E Kasper and David Arns."Graphics Programming with PHIGS and PHIGS-PLUS"
  420. HP Press/Addison Wesley, ISBN 0-201-56343-6
  421.   A book more oriented to the standard than Gaskins' book, It has
  422.   both FORTRAN and "C" and uses new binding. Especially good for HP.
  423.  
  424. John W. Blake. "PHIGS + PHIGS+, An Introduction to 3D Computer Graphics"
  425. Acedemic Press/Harcourt Brace Jovanovich Ltd. ISBN 0.12.103515.8
  426. (only from 24-28 Oval Road, London, NWI 7DX, UK //  Lbs 29.95 ??)
  427.   I'm buying it, sight unseen...
  428.  
  429. "PHIGS Reference Manual", O'Reilly 1992, Edited by Rich Ellis & ...
  430.  ISBN 0-937175-91-9
  431.   Man Pages (improved version of the PEX-SI man pages)
  432.  
  433. Hopgood & Duce, "A Primer for PHIGS" John Wiley & Sons Ltd,
  434. ISBN: 471 93042 3 (no PHIGS-PLUS)
  435.   Some useful notions on structure editing.
  436.  
  437. W.A. Gaman, W.A. Giovinazzo, "PHIGS by Example", Springer-Verlag,
  438. ISBN 0-387-97555-1
  439.  
  440. PEX Books
  441. =========
  442.  
  443. Tom Gaskins' "PEXlib Programming Manual", O'Reilly 1992, ISBN 0-56592-028-7
  444.   This is a great book.
  445.  
  446. Paula Womack, PEXlib: A Tutorial, Prentice Hall 1993 (printing, due October)
  447. ISBN 013-015843-7.
  448.   Sight unseen. Paula was document editor for PEX 5.1, I'd bet it's great.
  449.  
  450. Mark Graff, PEXlib: A Reference Manual, Prentice Hall, ISBN 013-176066-1, 
  451.   Sight unseen.
  452.  
  453. "PEXlib Reference Manual", O'Reilly 1992,  ISBN 1-56592-029-5
  454.   Man pages for PEXlib SI,  with intro by Tom Gaskins.
  455.  
  456. ...and one more...
  457. Jan Hardenbergh, Building Applications with PEXlib, Prentice Hall, (December)
  458. ISBN 013-012535-0.
  459.   I've seen too much of this to be impartial! I like it. 
  460.  
  461. My conscience is clean (still) about using the internet for commercial gain.
  462. I've been sending out these lists of PHIGS books since before I had even
  463. thought of writing one. But at this point I'll stop because I think it is
  464. a gray area. I hope someone else will take it up. Joe?
  465.  
  466. Opinions expressed are my own, my employer uses HOOPS!
  467. Jan "YON" Hardenbergh     - jch@cvbnet.cv.com -      617-275-1800x3275
  468. Computervision Corp.        MS 5-2, 14 Crosby Drive, Bedford, MA 01730
  469. "Imagination is more important than knowledge" A. Einstein - Thank God!
  470. -----
  471.  
  472. Subject: 12) Articles on PEX
  473. From: klee@wsl.dec.com (Ken Lee)
  474. Date: 12 Aug 91 17:06:05 GMT
  475. References: <1991Aug12.100605@wsl.dec.com>
  476.  
  477. Clifford, William, John McConnell, and Jeffrey Friedberg, "The Development
  478.      of PEX, A Three-dimensional Graphics Extension to X11," in Proceedings
  479.      of Eurographics'88, September, 1988.  An overview PEX, an extension to
  480.      the X protocol to support PHIGS+.
  481.  
  482. Rost, Randi, Jeffrey Friedberg, and Peter Nishimoto, "PEX:  A Network-
  483.      Transparent 3D Graphics System," IEEE Computer Graphics & Applica-
  484.      tions, pp. 14-26, July, 1989.  A good overview of PEX, the
  485.      PHIGS/PHIGS+ 3D extension to X. A complete PEX is currently being
  486.      developed by Sun under contract to the MIT X Consortium and is
  487.      scheduled to be publicly available in 1991.
  488.  
  489. Stroyan, Michael, "Three-Dimensional Graphics Using the X Window System,"
  490.      Dr. Dobb's Journal, vol. 15, no. 2, pp. 28-36, February, 1990.  A high
  491.      level description of various approaches to developing 3D graphics
  492.      tools for X, including those of the PHIGS Extension to X (PEX) and
  493.      HP's Starbase-on-X11 (sox11).
  494.  
  495. Sung, Hsien Ching Kelvin, Greg Rogers, and William Kubitz, "A Critical
  496.      Evaluation of PEX," IEEE Computer Graphics & Applications, vol. 10,
  497.      no. 6, pp. 65-75, November, 1990.  An evaluation of PEX, the X exten-
  498.      sion to support PHIGS, from the point of view of a PHIGS implementor.
  499.  
  500. Thomas, Spencer W. and Martin Friedmann, "PEX - A 3-D Extension to X Win-
  501.      dows," in Proceedings of the Winter, 1989 USENIX Conference, pp. 139-
  502.      149.  Describes a demonstration implementation of PEX, the
  503.      PHIGS/PHIGS+ 3D extension to X. A complete PEX is currently being
  504.      developed by Sun under contract to the MIT X Consortium and is
  505.      scheduled to be publically available in 1991.
  506.  
  507. -----
  508. Subject: 13)  PEX Application Programmer Interfaces (APIs)
  509. From: thomson@jensen.cs.utah.edu (Rich Thomson)
  510. Date: Tue Mar  2 22:27:37 MST 1993
  511.  
  512. When discussing PEX, it is important not to confuse the protocol with
  513. the API, or application programmer interface.  The API is the
  514. conceptual model of 3D graphics that the application developer sees.
  515. The protocol is generated by the API and is interpreted by the server
  516. to perform graphics requests on behalf of the client program.
  517.  
  518. One API provided with the R5 PEX-SI is a PHIGS/PHIGS-PLUS API.  The
  519. PHIGS/PHIGS-PLUS standards are specified in two parts.  First, a
  520. functional description describes each operation conceptually, in a
  521. language-independent manner.  Second, language bindings are used to
  522. bind the particular PHIGS functions to the semantics of the language.
  523. The PEX-SI comes with an application programmer interface that
  524. conforms with the latest revision of the PHIGS/PHIGS-PLUS C language
  525. binding.
  526.  
  527. Bob Schulte of SHOGraphics had this to say about their GL-like API
  528. called PEXtk:
  529.  
  530.     Newsgroups: comp.windows.x.pex
  531.     From: rws@shograf.com (Bob Schulte)
  532.     Subject: Re: difference between PEX and GL
  533.     Date: Fri, 5 Feb 1993 16:03:42 GMT
  534.  
  535.     PEXtk is complete and available now directly from export.mit.lcs.edu,
  536.     and is located in /contrib. The files are pextk.PS.tar.Z, pextk.README,
  537.     and pextk.tar.Z.  It is Free.
  538.  
  539.     Depending on how you write a GL program and what features you use
  540.     it may or may not be difficult to port to PEXtk. It would certainly
  541.     be easier than porting to PHIGS.
  542.  
  543.     For example PEXtk uses X as its windowing system, so the UI is X
  544.     based. We have not attempted to duplicate any GL windowing functions.
  545.  
  546.     Bob
  547.     --
  548.     Bob Schulte,        E-Mail: rws@shograf.com    Voice: (408) 524-4015
  549.     SHOgraphics.        Performance Through PEX
  550.  
  551.  
  552. If your version of R5 is patched through patch #22, you have a second
  553. MIT supplied API called "PEXlib".  PEXlib is to the PEX protocol what
  554. Xlib is to the core X protocol.  PEXlib provides an interface that is
  555. as close as possible to a one-to-one correspondence between functions
  556. and protocol requests.  It is intended to be a systems programming
  557. interface (i.e. people developing graphics toolkits and graphics
  558. systems will implement their system on top of PEXlib).  It is proposed
  559. that the PHIGS API be ported to PEXlib once PEXlib is finalized.  This
  560. change would not affect programs written to the existing PHIGS API.
  561. However, since PEXlib is intimately tied to the protocol, it is
  562. expected that there will be changes between the current PEXlib (which
  563. supports version 5.0 and 5.1 of the PEX protocol) and the PEXlib that
  564. supports the next major version of the PEX protocol, version 6.0.
  565. Naturally, every attempt will be made to make the changes to the API
  566. minimal.  The nature of the changes from 5.1 to 6.0 are not such that
  567. every primitive will be affected; rather the changes deal with the
  568. sticky problems of subsets, multi-buffering, and other issues of
  569. global rendering semantics.
  570.  
  571. The future may contain other popular graphics APIs (SGI's GL, HP's
  572. Starbase, Stardent's Dore') that also generate the PEX protocol.
  573.  
  574.                         -- Rich
  575. -----
  576. Subject: 14)  PHIGS Toolkit -- a portable toolkit for PHIGS programmers
  577. From: Gareth Williams <williamj@computer-science.manchester.ac.uk>
  578. Date: Mon, 8 Feb 93 08:56:20 GMT
  579. Message-Id: <9302080856.AA04031@r3i.cs.man.ac.uk>
  580.  
  581.                      THE PHIGS TOOLKIT
  582.  
  583.      A PORTABLE TOOLKIT FOR PHIGS APPLICATION PROGRAMMERS
  584.  
  585.             *************************************
  586.             **** NEW RELEASE VERSION 3.2 FOR ****
  587.             ****       SunPHIGS 2.0          ****
  588.             ****       HP PHIGS 2.2          ****
  589.             **** ##    IBM graPHIGS 1.02  ## ****
  590.             ****         PEX-SI              ****
  591.             *************************************
  592.  
  593. We are pleased to announce the availability of version 3.2 of the PHIGS
  594. Toolkit, a portable toolkit for PHIGS application Programmers. The PHIGS
  595. Toolkit has been developed at the University of Manchester, UK, and is
  596. funded by the Science and Engineering Research Council (SERC) and the
  597. Advisory Group on Computer Graphics (AGOCG). The Toolkit is based on the
  598. experience of the developers who have been active PHIGS programmers for
  599. several years and were also involved in the ISO technical review of PHIGS
  600. and PHIGS PLUS.
  601.  
  602. Following the release in September this year of version 3.1 of the PHIGS
  603. Toolkit, version 3.2 is now available which supports SunPHIGS 2.0,
  604. HP PHIGS 2.2, IBM graPHIGS 1.02 and MIT's PEX-SI.
  605.  
  606. MAIN FEATURES OF THE TOOLKIT
  607. ----------------------------
  608.  
  609.  o comprehensive transformations library
  610.  o automatic drawing of structure network hierarchy diagrams
  611.  o automatic drawing of structure content diagrams
  612.  o interactive CSS debugger
  613.  o interactive view editor
  614.  o window system implemented using PHIGS structures
  615.  o interactive PHIGS Interpreter
  616.  o comprehensive colour model support library
  617.  o menu system to extend PHIGS input
  618.  
  619.  o Runs with C and FORTRAN for SunPHIGS on SunOS
  620.  o Runs with C for HP PHIGS on HP-UX
  621.  o Runs with C for graPHIGS on AIX
  622.  o Runs with C for PEX-SI on SunOS
  623.  o Runs with C and FORTRAN for DEC PHIGS on VAX/VMS (PTK 2.0 only)
  624.  
  625.  o full source code provided
  626.  o demonstration programs provided
  627.  o comprehensive documentation
  628.  
  629. WHAT IS THE PHIGS TOOLKIT?
  630. --------------------------
  631.  
  632. The purpose of the PHIGS Toolkit is to help application programmers to
  633. program more effectively and securely using PHIGS. The functionality
  634. provided by PHIGS is low-level, and the PHIGS Toolkit provides a number of
  635. tools of various levels of complexity in order to make programming with
  636. PHIGS quicker, and less painful.  To the programmer, it is as if the
  637. functions provided by PHIGS have been supplemented with a set of additional
  638. functions, and a typical application will use both `raw' PHIGS functions as
  639. well as PHIGS Toolkit functions.  A convenient way to view the Toolkit is
  640. as a layer of software which sits `on top of' PHIGS.
  641.  
  642. Tools in the PHIGS Toolkit are divided into two categories: PROGRAMMING
  643. TOOLS, and HIGH-LEVEL TOOLS.  Programming tools are generally quite simple
  644. single-purpose procedures, and are designed to help applications
  645. programmers to construct PHIGS programs more quickly and reliably. The
  646. high-level tools are more powerful, and provide programmers with means for
  647. visualising and debugging structure networks.
  648.  
  649. PROGRAMMING TOOLS
  650. -----------------
  651.  
  652.  o the Transformations Library -- functions for
  653.    constructing and manipulating coordinate transformations.
  654.  
  655.  o the HashStrings Library -- functions which enable text
  656.    strings to be used in situations where integers would normally
  657.    be required.
  658.  
  659.  o the PHIGS Utilities Library -- utility functions,
  660.    providing operations (such as `copy element') which are not directly
  661.    provided by PHIGS, as well as common sequences of PHIGS function calls
  662.    `bundled up' into single functions.
  663.  
  664.  o the PHIGS Traversal State List Library -- functions for
  665.    controlling and inquiring a simulated structure network traversal.
  666.  
  667.  o the Colour Library -- functions for defining colour
  668.    values using English words and phrases, and for interchangeably
  669.    manipulating colours using various colour models.
  670.  
  671.  o the PHIGS Textual Interpreter (Phinter) -- a tool for reading textual
  672.    PHIGS scripts. Phinter may be used interactively with a PHIGS string device
  673.    or standard input.
  674.  
  675. HIGH-LEVEL TOOLS
  676. ----------------
  677.  
  678.  o the PHIGS Structure Content Drawer -- a tool to generate diagrams
  679.    showing which elements structures contain.  The diagrams are themselves
  680.    PHIGS structures, with a documented format.
  681.  
  682.  o the PHIGS Topology Library -- functions for
  683.    automatically generating diagrams representing the topology of PHIGS
  684.    structure networks. The diagrams are themselves PHIGS structures, with a
  685.    documented format.
  686.  
  687.  o the PHIGS Menus Library -- functions for constructing
  688.    and manipulating menus built using PHIGS structures.
  689.  
  690.  o the PHIGS Windows Library -- functions for displaying
  691.    and viewing PHIGS structure networks in windows.
  692.  
  693.  o the PHIGS Debugger -- a tool (modelled after conventional
  694.    programming language debuggers) for simulating the traversal of structure
  695.    networks. The traversal may be stepped through incrementally and the state
  696.    of the traversal inquired at any stage.
  697.  
  698.  o the PHIGS View Editor -- a utility for interactively editing and
  699.    experimenting with viewing parameters for a scene.
  700.  
  701. PHIGS TOOLKIT INFORMATION   ** REGISTER NOW **
  702. ----------------------------------------------
  703.  
  704. We would like to encourage all people interested in the PHIGS Toolkit to
  705. register as PHIGS Toolkit users. This will ensure that all PHIGS Toolkit
  706. users will receive notice of new versions, course dates, bug reports and
  707. any other useful information.  Please send the following information to
  708. phigstoolkit@cs.man.ac.uk.
  709.  
  710.    Name:
  711.    Organisation:
  712.    email:
  713.    Telephone/FAX:
  714.    PHIGS implementations used:
  715.  
  716. Even if the PHIGS Toolkit is not currently available for your particular
  717. PHIGS implementation, please register. We are currently working on ports to
  718. several other PHIGS implementations and it would be very useful to know
  719. what the demand is for different versions.
  720.  
  721. HOW TO OBTAIN THE PHIGS TOOLKIT
  722. -------------------------------
  723.  
  724. The PHIGS Toolkit is available from two sites in the UK:
  725.  
  726. PTK from Kent
  727. -------------
  728.  
  729. The PHIGS Toolkit is available from HENSA (Higher Education National 
  730. Software Archive) at the University of Kent.
  731.  
  732. The HENSA Service at the University of Kent can be accessed in a number 
  733. of ways:
  734.  
  735. Interactive
  736. -----------
  737.  
  738. There is a friendly interactive interface which has a useful find
  739. utility for locating software.  Connect to unix.hensa.ac.uk and log
  740. in as "archive" for an interactive interface to the HENSA archive.  
  741. Connections can be made using telnet (unix.hensa.ac.uk) and X.29 
  742. across JANET (uk.ac.hensa.unix, DTE 000049200900).
  743.  
  744. anonymous ftp
  745. -------------
  746.  
  747. Using DARPA FTP connect to the machine unix.hensa.ac.uk and
  748. login as "anonymous", giving your email address as the password.
  749.  
  750. guest NI-FTP]
  751. Using Blue Book NI-FTP with the following:
  752.  
  753. address: uk.ac.hensa.unix
  754. login: guest
  755. path: <ARCHIVE>/filename
  756.  
  757. eg.     % fcp -b "<ARCHIVE>/uunet/ls-lR.Z"@uk.ac.hensa.unix ls-lR.Z
  758. User name on uk.ac.hensa.unix? guest
  759. Password on uk.ac.hensa.unix? jn@ukc.ac.uk
  760.  
  761. email server
  762. ------------
  763.  
  764. Send a message to "archive@unix.hensa.ac.uk" containing the 
  765. string "help" for details on how to use it.
  766.  
  767. Any general queries regarding the HENSA service at The University of
  768. Kent should be directed to hensa@unix.hensa.ac.uk, queries specific to
  769. the Netlib service should be sent to netlib-admin@unix.hensa.ac.uk and
  770. stuff concerning the source archive to archive-admin@unix.hensa.ac.uk.
  771.  
  772. The relevant files for the PHIGS Toolkit on HENSA are:
  773.  
  774. PTK 3.2     /misc/unix/phigstk/PhigsToolkit3.2.tar.Z 
  775.                                       for SunPHIGS 2.0 on SunOS, 
  776.                                           HP PHIGS 2.2 on HP-UX,
  777.                                           graPHIGS 1.02 on AIX,
  778.                                           PEX-SI on SunOS.
  779.  
  780. PTK 2.0    /misc/unix/phigstk/PhigsToolkit.tar.Z 
  781.                                       for SunPHIGS 1.x on SunOS.
  782.            /misc/vms/phigstk/ptk.hex for DEC PHIGS 2.3A on VAX/VMS.
  783.  
  784. PTK from Manchester
  785. -------------------
  786.  
  787.   By anonymous ftp from uk.ac.mcc.hpb. (130.88.200.7) 
  788.   Username "anonymous", and your network address as password.
  789.   The files are:
  790.  
  791. PTK 3.2     pub/cgu/ptk/ptk3.2.tar.Z for SunPHIGS 2.0 on SunOS, 
  792.                                   HP PHIGS 2.2 on HP-UX,
  793.                                   graPHIGS 1.02 on AIX,
  794.                                   PEX-SI on SunOS.
  795.  
  796. PTK 2.0     pub/cgu/ptk/ptk.tar.Z for SunPHIGS 1.x on SunOS.
  797.  
  798.             pub/cgu/ptk/ptk.shar* for DEC PHIGS 2.3A on VMS.
  799.  
  800. (
  801. For VMS the Toolkit is stored as a collection of SHAR files.
  802. There are 288 files in total, each 15K in size.
  803. They are called ptk.shar_X where X is 1 ... 288.
  804. To rebuild the Toolkit directory structure the
  805. files must be concatenated together and run as a command file.
  806.  
  807.    $ copy ptk.shar_%, ptk.shar_%%, ptk.shar_%%% ptk.shar
  808.    $ @ptk.shar
  809. )
  810.  
  811. PTK by Magnetic Tape
  812. --------------------
  813.  
  814. Send a 1/4 inch cartridge for SunOS, and a 1/2 inch open reel magnetic tape
  815. for VMS to:
  816.  
  817. Tim Hopkins
  818. Computing Laboratory
  819. University of Kent
  820. email: trh@uk.ac.ukc
  821.  
  822. or
  823.  
  824. Toby Howard
  825. Department of Computer Science
  826. University of Manchester
  827. Oxford Road
  828. Manchester M13 9PL
  829. United Kingom
  830. Tel: +44 61 275 6274
  831. Fax: +44 61 275 6236
  832. email: toby@uk.ac.man.cs
  833.  
  834. PHIGS TOOLKIT TRAINING COURSE
  835. -----------------------------
  836.  
  837. A training course for users of the PHIGS Toolkit was held at the
  838. University of Manchester on September 23rd 1992. Course materials
  839. including four programming exercises and three step-through
  840. tutorials are provided in this release of the Toolkit.
  841.  
  842. FUTURE WORK
  843. -----------
  844.  
  845. The first phase of the PHIGS Toolkit does not include support for PHIGS
  846. PLUS. Work is now underway to expand the Toolkit to include extensive
  847. support for PHIGS PLUS functions, and the expanded PHIGS Toolkit will be
  848. released in April 1993. 
  849.  
  850. A toolkit providing support for NURBS curves and surfaces has also
  851. been developed at Manchester, and is designed to be complementary to 
  852. the PHIGS Toolkit. It is available from the same sites as PTK.
  853.  
  854. BETA TEST
  855. ---------
  856.  
  857. We are currently looking for beta testers for the PHIGS PLUS extensions 
  858. and the test will start in the new year and finish at the end of February 
  859. 1993. A short report will be required from testers. Please get in touch 
  860. if you are interested in being a tester.
  861.  
  862. Toby Howard, Terry Hewitt, Gareth Williams, Steve Larkin, David Yip
  863. University of Manchester
  864. Oxford Road, Manchester, M13 9PL, United Kingdom
  865.  
  866.  
  867. -----
  868. Subject: 15)  Why doesn't HLHSR mode (Z buffering) work with the PEX-SI?
  869. From: Rich Thomson <thomson@jensen.cs.utah.edu>
  870. Date: Mon Mar 28 14:14:49 MST 1994
  871.  
  872. Sorry, the PEX-SI doesn't have any support for hidden line and hidden
  873. surface removal (HLHSR), commonly implemented through Z buffering.
  874. The PEX-SI team decided that since Z buffering is very device specific
  875. they would leave it up to each vendor to implement Z buffering support
  876. for the first release.
  877.  
  878. It is planned to provide software Z buffer HLHSR support in the
  879. PEX-SI, probably in the R6 release.
  880.  
  881. The PHIGS standard allows an implementation to provide only HLHSR mode
  882. NONE and still be a conformant implementation of the standard.  This
  883. is probably a leftover from the days of calligraphic and storage-scope
  884. type displays which don't have Z buffers or other HLHSR removal methods
  885. in hardware (except hardware-based sorting for hidden-line removal).
  886.  
  887.                         -- Rich
  888. -- 
  889. --
  890.     ``Read my MIPs -- no new VAXes!!''  --George Bush after sniffing freon
  891. Rich Thomson                    thomson@asylum.utah.edu
  892.